package cn.hznc.constant;

/**
 *
 *
 * @Author Administrator
 * @Date 2023/3/10 16:45
 */
public enum ToolParamEnum {

    CXSC("冷却出口代码","CXSC"),
    CNSC("冷却入口代码","CNSC"),
    APMX("最大切削深度","APMX"),
    ZEFF("端面有效切削刃数","ZEFF"),
    ZEFP("周边有效切削刃数","ZEFP"),
    LCCB("连接孔沉头深度","LCCB"),
    DCCB("连接沉头孔直径","DCCB"),
    IC("刀片IC值","IC"),
    IIC("刀片安装代码","IIC"),
    INSERT_SCREW("刀片压紧螺钉（数量）",".INSERT SCREW"),
    KAPR("主偏角","KAPR"),
    S("刀片T值","S"),
    Z("刀盘安装刀片数量","Z"),
    WRENCH("扳手","WRENCH"),
    DCX("最大切削直径","DCX"),
    ZNF("端面安装刀片数量","ZNF"),
    DHUB("毂直径","DHUB"),
    LS("柄部长度","LS"),
    OAL("总长度","OAL"),
    NOF("容屑槽数量","NOF"),
    HAND("方向","HAND"),
    DC("切削直径","DC"),
    WT("重量（克）","WT"),
    SIG("顶角","SIG"),
    PRODDES("产品系列","PRODDES"),
    CCMS("机床侧安装代码","CCMS"),
    DESCRIPTION("产品描述","description"),
    GRDMFG("牌号","GRDMFG"),
    PARTNO("物料编码","PARTNO"),
    LCF("容屑槽长度","LCF"),
    LU("可用刃长","LU"),
    TCDMM("刀柄直径公差","TCDMM"),
    CRCLMFG("适用加工材料","CRCLMFG"),
    INSL("刀片长度","INSL"),
    GEOM("槽型","GEOM"),
    D1("装夹孔直径","D1"),
    L("切削刃长","L"),
    TCINS("精度等级","TCINS"),
    CTPT("加工范围","CTPT"),
    AN("刀片后角","AN"),
    FHCW("装夹孔倒角宽度","FHCW"),
    REN("副刀尖圆弧半径","REN"),
    EPSR("刀夹角","EPSR"),
    SC("形状代码","SC"),
    RE("刀尖圆弧半径","RE"),
    FHCA("装夹孔倒角角度","FHCA"),
    SHIM_SCREW("刀垫压紧螺钉（数量）",".SHIM SCREW"),
    KCH("刀尖倒角","KCH"),
    SHIM("刀垫数量",".SHIM"),
    COATN("涂层","COATN"),
    FHC("孔型代码","FHC"),
    LH("头部长度","LH"),
    FHA("螺旋角","FHA"),
    H("刀柄高度","H"),
    WF("工作宽度","WF"),
    GAMO("轴向倾角","GAMO"),
    LF("工作长度","LF"),
    LAMS("经向倾角","LAMS"),
    SPRING("弹簧(数量)",".SPRING"),
    B("刀柄宽度","B"),
    ZNC("过中心刃数","ZNC"),
    DCON("柄部直径","DCON"),
    AS("修光刃后角","AS"),
    BS("修光刃长","BS"),
    CLAMP("压板（数量）",".CLAMP"),
    CCWS("刀片安装代码","CCWS"),
    IDNR("物料型号" ,"IDNR"),
    NUT_BD("螺母本体直径" , "NUT_BD"),
    LPR("伸出长度" ,"LPR"),
    CR("夹持范围" ,"CR"),
    W1("刀片宽度" ,"W1"),
    CDX("最大深度" ,"CDX"),
    WEDGE("压块（数量）" , ".WEDGE"),
    WEDGE_SCREW("压块压紧螺钉（数量）" , ".WEDGE SCREW"),
    BD("本体直径" ,"BD"),
    BAWS("工件侧刀体角度" ,"BAWS"),
    HF("刀夹高度" , "HF"),
    CW("切削刃宽度" , "CW"),
    HXB("刀方尺寸" , "HXB"),
    DMIN("最小加工孔径" ,"DMIN"),
    PLUG_SCREW("入水口堵头螺钉（数量）" , ".PLUG SCREW"),
    HBH("切削头底部偏置高度","HBH"),
    LFA("LF上的尺寸A","LFA"),
    DCC("设计配置样式代码","DCC"),
    WFA("WF上的尺寸A","WFA"),
    CLAMPING_STUD("销钉（数量）",".CLAMPING STUD"),
    LEVER("杠杆（数量）" , ".LEVER"),
    SHIM_PIN("挡垫（数量）" , ".SHIM PIN"),
    CLAMP_SCREW( "压板压紧螺钉（数量）", ".CLAMP SCREW"),
    BDRED("缩径","BDRED"),
    DAXN("最小轴向槽外径","DAXN"),
    ZNP("周边安装刀片数量","ZNP"),
    DN("颈部直径","DN"),
    DF("法兰直径","DF"),
    LPCON("连接伸出长度","LPCON"),
    LB("本体长度","LB"),
    RMPX("最大坡走角度","RMPX"),
    PRFRAD("刀尖轮廓半径","PRFRAD"),
    THSZWS("螺纹接口连接直径","THSZWS"),
    TCHAU("孔公差上限","TCHAU"),
    BCH("刀尖倒角长度","BCH");

    /**
     * 中文名称
     */
    private final String name;

    /**
     * 英文名称
     */
    private final String nameEn;


    public static String getNameByNameEn(String nameEn){
        ToolParamEnum arrObj[] = ToolParamEnum.values();
        for (ToolParamEnum obj : arrObj) {
            if (nameEn == obj.getNameEn()) {
                return obj.name;
            }
        }
        return "";
    }

    ToolParamEnum(String name, String nameEn) {
        this.name = name;
        this.nameEn = nameEn;
    }

    public String getName() {
        return name;
    }

    public String getNameEn() {
        return nameEn;
    }
}
